package com.qisu.enums;


/**
 * 站点工作状态：离线、故障、告警、空闲、充电中、充电完成、预约、等待、签到、交换密钥
 *
 * @author alsan
 *
 */
public enum WorkingState implements DescriptiveEnum<Integer> {
	// @formatter:off
	Standby(0, "空闲"),
	Connected(1, "准备充电"),
	Charging(2, "充电中"),
	ChargeCompleted(3, "充电结束"),
	Failure(4, "启动失败"),
	Booked(5, "预约"),
	Fault(6, "故障");
	
	// @formatter:on

	private int value;
	private String _desc;

	private WorkingState(int val, String desc) {
		value = val;
		_desc = desc;
	}

	@Override
	public Integer getValue() {
		return value;
	}

	@Override
	public String getDescription() {
		return _desc;
	}
}
